package com.example.abstractfactory8.factory;

import com.example.abstractfactory8.Bus;
import com.example.abstractfactory8.Milk;

/**
 * @version 1.0.0
 * @className: HighPersonFactory
 * @description:
 * @author: zhangjunfa
 * @date: 2022/6/10 14:53
 */
public class HighPersonFactory implements AbstractFactory {
    /**
     * 获取具体产品 - 骑车
     *
     * @return
     */
    @Override
    public Car getCar() {
        return new Bus();
    }

    /**
     * 获取具体产品 - 牛奶
     *
     * @return
     */
    @Override
    public BreakFast getBreakFast() {
        return new Milk();
    }
}
